home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
dblrou1r
/
count.frm
< prev
next >
Wrap
Text File
|
1998-11-02
|
2KB
|
80 lines
VERSION 5.00
Begin VB.Form Countfrm
BackColor = &H00000000&
BorderStyle = 0 'None
Caption = "321GO"
ClientHeight = 7200
ClientLeft = 0
ClientTop = 0
ClientWidth = 9600
Icon = "Count.frx":0000
LinkTopic = "Form2"
ScaleHeight = 480
ScaleMode = 3 'Pixel
ScaleWidth = 640
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
WindowState = 2 'Maximized
Begin VB.Timer Timer1
Interval = 1000
Left = 0
Top = 0
End
Begin VB.Label lblCount
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "3"
BeginProperty Font
Name = "Impact"
Size = 240
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 5865
Left = 2400
TabIndex = 0
Top = 720
Width = 5295
End
End
Attribute VB_Name = "Countfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' THIS form... Its just a count down to playing the game! Nothing special about it...
Private Sub Form_Load()
lblCount.Top = (GetSystemMetrics(SM_CYSCREEN) / 2) - (lblCount.Height / 2)
lblCount.Left = (GetSystemMetrics(SM_CXSCREEN) / 2) - (lblCount.Width / 2)
End Sub
Private Sub Timer1_Timer()
If lblCount.Caption = "3" Then
lblCount.ForeColor = RGB(255, 0, 0)
lblCount.Caption = "2"
Exit Sub
End If
If lblCount.Caption = "2" Then
lblCount.ForeColor = RGB(255, 255, 0)
lblCount.Caption = "1"
Exit Sub
End If
If lblCount.Caption = "1" Then
lblCount.ForeColor = RGB(0, 255, 0)
lblCount.Caption = "GO"
Exit Sub
End If
If lblCount.Caption = "GO" Then
lblCount.ForeColor = RGB(255, 0, 0)
lblCount.Caption = "3"
Unload Me
Exit Sub
End If
End Sub